﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PwjCy.Lite.Persistence
{
    /// <summary>
    /// 持久层映射
    /// </summary>
    public interface IPersisterMapping
    {
        /// <summary>
        /// 注册持久层驱动
        /// </summary>
        void RegisterPersitenceDriver();
        /// <summary>
        /// 获取持久层驱动
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="storageAlias"></param>
        /// <returns></returns>
        T GetDirver<T>(string storageAlias);
    }
}
